const pxtorem = require("postcss-pxtorem");

module.exports = {
  plugins: [
    require("autoprefixer")({
      browsers: [
        // 加这个后可以出现额外的兼容性前缀
        "> 0.15%"
      ]
    }),
    // disablt if react native
    pxtorem({
      rootValue: 100 * (750 / 750),
      unitPrecision: 5,
      propList: ["*"],
      selectorBlackList: [/^\.nop2r/],
      replace: true,
      mediaQuery: false,
      minPixelValue: 0
    })
  ]
};
